<template>
  <Menu theme="dark" :accordion="true" :open-names="['1']" active-name="1-1">
    <Submenu :name="(i+1).toString()" v-for="(item,i) in menulist">
      <template slot="title">
        <Icon :type="item.icon"/>
        {{item.label}}
      </template>
      <MenuItem :name="(i+1)+'-'+(j+1)" :to="sub.path" v-for="(sub,j) in item.sublist">{{sub.label}}</MenuItem>
    </Submenu>
  </Menu>
</template>
<script>
import Config from "@/config";
export default {
  data() {
    return {
      menulist: Config.menuList
    };
  },
  mounted() {}
};
</script>
